wintab: fix skipping of odd-numbered devices
authorAndrew Chadwick <a.t.chadwick@gmail.com>
Sat, 19 Nov 2016 03:26:29 +0000 (03:26 +0000)
committerIgnacio Casal Quinteiro <icq@gnome.org>
Mon, 21 Nov 2016 18:11:09 +0000 (19:11 +0100)
commit6e197afc4498bf788b498d869d478b03cb7f58d9
tree959cae72a16f01f91d2f760dcd8e4f4e93490f7e
parent7ae83717afda072adf89522616ef22c72611f29d
wintab: fix skipping of odd-numbered devices

Fix a regression introduced in 4ce6d1060104e7072eec347370999bfd3fe69dc0
which causes devices with an odd-numbered zero-based index in the list
to be passed over incorrectly. This might present as yet another "device
does not send pressure" bug for ~50% of devices out there.

This commit also closes off another potential segfault for wintab_devices
lists which have an odd length.

https://bugzilla.gnome.org/show_bug.cgi?id=774699
gdk/win32/gdkdevicemanager-win32.c